import React from 'react';
import logo from './logo.svg';
import './App.css';
import { Button, message } from 'antd';
import { BrowserRouter, HashRouter, Switch, Route } from 'react-router-dom'
import Admin from './pages/admin/admin'
import Login from './pages/login/login'

class App extends React.Component {
  onClick = () => {
    message.success("成功啦......");
  }

  render() {
    return (
      <div className="App">
        <HashRouter>
          <Switch>
            <Route path="/login" component={Login} />
            <Route path="/" component={Admin} />
          </Switch>
        </HashRouter>
      </div>
    )
  }
}

export default App;
